<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<title>我的订单</title>
	<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/css/base.css">
	<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/mobile/css/master.css">

	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?11ad56ca0738ac14d150a362fca3e058";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>

</head>
	<body style="background:#f5f5f5">
		<header>
			<a href="tel:4006730088" class="tel iconfont">&#xe60c;</a>
			<a href="javascript:void(0)" class="menu iconfont" onclick="home.showMenu()">&#xe602;</a>
			<img src="{:C('WEB_URL')}Public/mobile/images/logo.png" id="logo">
		</header>
	

		<div class="myOrder">
			<empty name="order">
				<div class="empty">
					<i>&#xe619;</i>
					<p>您当前暂无订单</p>
				</div>
			</empty>

			<ul>
				<?php foreach($order as $list){ ?>
				<li onclick="toPage({$list['order_id']},{$list['wx_id']})">
					<i>&#xe616;</i>
					<p class="time">下单时间：<?php echo date('Y-m-d H:i',$list['create_time']); ?></p>
					
					<p class="price">￥<?php echo $list['all_price']; ?></p>
					<p class="name"><?php echo $list['order_name'].(empty($list['km'])?"":"(".$list['km']."km)"); ?></p>
					<p class="orderCode">
						<span class="status">
							
							<php>
							if(in_array($list['wx_id'],C("officeShop"))){
								if($list['pay_type']!=0&&$list['status']==60){

									echo $list['is_comment']==0?"待评价":"已完成";
								}else if($list['pay_type']==0&&$list['status']==60){
									echo $statusArrOffice[$list['status']];
								}else{
									echo $statusArrOffice[$list['status']];
								}
							}else{
								echo $statusArr[$list['status']];
							}</php>

						</span>
						订单号：<?php echo $list['order_num']; ?>
					</p>
				</li>
				<?php } ?>
			</ul>
		</div>

		<include file="Public/mobileHome" />

		<script>
			function toPage(id,type){
				if(type==441){
					var url="{:C('WEB_URL')}mobile/myOrderInfoQBY.html?id="+id;
				}else{
					var url="{:C('WEB_URL')}mobile/myOrderInfo.html?id="+id;
				}
				window.location.href=url;
			}
		</script>
	</body>
</html>